<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>test</title>
</head>
<body>
<script>

	//迭代器函数
	function isEven(x) {
		return x % 2 === 0;
	}
	let numbers = [1,2,3,4,5,6,7,8,9,10];
	/*console.log(numbers.every(isEven));
	console.log(numbers.some(isEven));
	numbers.forEach(x => {console.log(x % 2 === 0)});*/

	/*let iterator = numbers[Symbol.iterator]();
	 for(const i of iterator) {
	 	console.log(i)
	 }*/
	/* let aEntries = numbers.entries();
	 console.log(aEntries.next());
	 console.log(aEntries.next().value);
	 console.log(aEntries.next().value);*/

</script>
</body>
</html>